﻿using System.Data.Common;
using DapperLambdaSQL.Model;
using MySql.Data.MySqlClient;

namespace DapperLambdaSQL.Factory.Impl
{
    public class MySqlConnectionFactory : IDbConnectionFactory
    {
        public SQLOptions SQLOptions { get; set; }

        public DbConnection CreateConnection()
        {
            return new MySqlConnection(SQLOptions.DbConnectionString);
        }
    }
}